package cn.xiaochao.zebra_engine2;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import cn.xiaochao.rpc.RpcServerRunner;
import cn.xiaochao.zk.ZKConnectRunner;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        
        ExecutorService ex = Executors.newCachedThreadPool();
        // zk启动
        ex.submit(new ZKConnectRunner());
        // 启动服务器
        ex.submit(new RpcServerRunner());
        
        
        
    }
}
